package com.lzc.zhxy.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzc.zhxy.pojo.LoginForm;
import com.lzc.zhxy.pojo.TbTeacher;

/**
* @author 82389
* @description 针对表【tb_teacher】的数据库操作Service
* @createDate 2022-04-16 18:00:15
*/
public interface TbTeacherService extends IService<TbTeacher> {

    /**
     * 登陆方法
     * @param loginForm
     * @return
     */
    TbTeacher login(LoginForm loginForm);

    /**
     * 根据id查找用户信息
     * @param intValue
     * @return
     */
    TbTeacher getTeacherById(int intValue);

    /**
     * 获取教师信息,分页带条件
     * @param page
     * @param teacher
     * @return
     */
    IPage<TbTeacher> getTeachersByOpr(Page<TbTeacher> page, TbTeacher teacher);
}
